| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267 |
- <template>
- <!-- 页面头部 -->
- <HomePageHead></HomePageHead>
- <!-- 导航栏 -->
- <HomePageNavigation></HomePageNavigation>
- <!-- 面包屑导航 -->
- <!-- <div class="breadcrumb-box">
- <div class="inner">
- <span class="location">当前位置:</span>
- <el-breadcrumb :separator-icon="ArrowRight">
- <el-breadcrumb-item>
- <NuxtLink to="/">首页</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item>
- <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item>
- <NuxtLink :to="`list-1.html`"> {{ routLevelTitle }}</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item class="phone_breadcrumb_text">
- {{ routeNewsTtitle }}
- </el-breadcrumb-item>
- </el-breadcrumb>
- </div>
- </div> -->
- <!-- 面包屑导航 -->
- <div class="breadcrumb-box">
- <div class="inner">
- <span class="location">当前位置:</span>
- <el-breadcrumb :separator-icon="ArrowRight">
- <el-breadcrumb-item>
- <NuxtLink to="/">首页</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item>
- <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item>
- <NuxtLink :to="`list-1.html`"> {{ routLevelTitle }}</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item class="phone_breadcrumb_text">
- {{ routeNewsTtitle }}
- </el-breadcrumb-item>
- </el-breadcrumb>
- </div>
- </div>
- <!-- 资讯列表 -->
- <div class="newsDetail">
- <!-- <div class="inner"> -->
-
- <div class="innerLeft">
-
- <div class="LeftTop">
- <h1>{{ newsDetail.title }}</h1>
- <p>
- <span>时间:{{ time }}</span>
- <span>来源:{{ newsDetail.copyfrom }}</span>
- <span>作者:{{ newsDetail.author }}</span>
- </p>
- </div>
- <div
- class="leftBottom"
- v-html="newsDetail.content"
- v-if="newsDetail.content"
- @click="openPreview">
- </div>
- <div v-if="previewVisible" class="preview-modal" @click="closePreview">
- <img :src="selectedImage" alt="Preview">
- </div>
- <!-- 免责声明: -->
- <div class="disclaimer" v-if="newsDetail.copyfrom!='本网'">
- <p>原文链接:{{ newsDetail.fromurl }}</p>
- <p>[免责声明]本文来源于网络转载,仅供学习交流使用,不构成商业目的。 版权归原作者所有,如涉及作品内容,版权和其他问题,请在30日与本网联系,我们将第一时间处理。</p>
- </div>
- <div v-if="articleChoice">
- <!--投票-->
- <div class="index_3_box_vote" v-if="articleChoice">
- <div class="voteTitle">投票区</div>
- <div class="inquire">
- <p v-if="voteList.length>0">{{voteList[0].survey_name}}</p>
- <div class="radioBox">
- <!--投票选项-->
- <div v-if="!isDisabled">
- <div class="radio" v-if="isRadio">
- <el-radio-group v-model="radio1" @change="handleRadioChange">
- <el-radio v-for="item in voteList" :key="item.id" :value="item.id" size="large">
- <span v-if="item.is_other == 0">{{item.choice_name}}</span>
- <span v-else>其他</span>
- </el-radio>
- </el-radio-group>
- <el-input
- v-if="showUserChoice"
- v-model="userChoice"
- :rows="2"
- type="textarea"
- resize="none"
- placeholder="请输入.."
- />
- </div>
- <div class="checkInputBox" v-else>
- <el-checkbox-group v-model="check1" @change="handleCheckboxChange">
- <span v-for="item in voteList" :key="item.id">
- <span v-if="item.is_other == 0">
- <el-checkbox size="large" :label="item.choice_name" :value="item.id"/>
- </span>
- <span v-else>
- <el-checkbox size="large" label="其他" :value="item.id"/>
- </span>
- </span>
- </el-checkbox-group>
- <el-input
- v-if="showUserChoice"
- v-model="userChoice"
- :rows="2"
- type="textarea"
- resize="none"
- placeholder="请输入.."
- />
- </div>
- </div>
- <!--投票结果-->
- <div class="inquireData" v-else>
- <div v-for="item in websiteSurveyData.data" :key="item.id">
- <div class="inquireDataItem active" v-if="item.status == 1">
- <div class="inquireDataItemTitle">
- <span v-if="item.choice_name == ''">其他</span>
- <span v-else>{{item.choice_name}}</span>
- </div>
- <div class="inquireDataItemNum">{{item.results}}票</div>
- </div>
- <div class="inquireDataItem" v-else>
- <div class="inquireDataItemTitle">
- <span v-if="item.choice_name == ''">其他</span>
- <span v-else>{{item.choice_name}}</span>
- </div>
- <div class="inquireDataItemNum">{{item.results}}票</div>
- </div>
- </div>
- </div>
- </div>
- <div class="btn">
- <button class="voting" @click="addWebsiteSurvey" :disabled="isDisabled" v-if="!isDisabled">投票</button>
- </div>
- </div>
- </div>
- </div>
- <!--推荐阅读-->
- <!-- <div class="recommendRead" v-if="newsDetail.commendArticle != false">
- <div class="recommendReadTitle">
- <span class="read_title">
- 推荐阅读
- </span>
- </div>
- <div class="recommendReadList">
- <div class="recommendReadListTitle" v-for="(item, index) in newsDetail.commendArticle"
- :key="item.id">
- <a :href="`/${item.alias_pinyin}/${item.id}.html`" v-if="index < 3">
- {{ item.title }}
- </a>
- </div>
- </div>
- </div> -->
- <!--上一篇 下一篇-->
- <div class="prevNext">
- <NuxtLink to="/">上一篇:李强签署国务院令 公布《行政执法监督条例》</NuxtLink>
- <NuxtLink to="/">下一篇:没有了</NuxtLink>
- </div>
- </div>
- <div class="innerRight">
- <div class="newsItemsBox">
- <div class="new-items-box-title">
- <span></span>
- <NuxtLink to="/" title="最新资讯"> 最新动态 </NuxtLink>
- </div>
- <div class="new-items-box-body">
- <div class="coniteml zzjj">
-
- <div class="l_img maskLayer">
- <NuxtLink class="imgA" to="http://hbfzdy.org.cn/show-139825.html" title="全国统战部长会议在京召开 王沪宁出席并讲话">
- <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
- </NuxtLink>
- <NuxtLink class="maskLayer_text" to="http://hbfzdy.org.cn/show-139825.html" title="全国统战部长会议在京召开 王沪宁出席并讲话">
- <span class="zzc">全国统战部长会议在京召开 王沪宁出席并讲话</span>
- </NuxtLink>
- </div>
- <div class="l_img maskLayer">
- <NuxtLink class="imgA" to="http://hbfzdy.org.cn/show-139806.html" title="监测数据造假不可为 企业个人的环保法律责任清单">
- <img src="http://img.hbfzdy.org.cn/202601/940d7fb8dff31.png" data-src="http://img.hbfzdy.org.cn/202601/940d7fb8dff31.png" data-isloaded="1">
- </NuxtLink>
- <NuxtLink class="maskLayer_text" to="http://hbfzdy.org.cn/show-139806.html" title="监测数据造假不可为 企业个人的环保法律责任清单">
- <span class="zzc">监测数据造假不可为 企业个人的环保法律责任清单</span>
- </NuxtLink>
- </div>
- </div>
- <ul class="conitemlList">
- <li>
- <span>1</span>
- <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
- </li>
- <li>
- <span>2</span>
- <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
- </li>
- <li>
- <span>3</span>
- <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
- </li>
- <li>
- <span>4</span>
- <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
- </li>
- <li>
- <span>5</span>
- <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
- </li>
- <li>
- <span>6</span>
- <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
- </li>
- <li>
- <span>7</span>
- <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
- </li>
- <li>
- <span>8</span>
- <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
- </li>
- <li>
- <span>9</span>
- <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
- </li>
- <li>
- <span>10</span>
- <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
- </li>
-
-
- </ul>
- </div>
- </div>
- <div class="newsItemsBox">
- <div class="new-items-box-title">
- <span></span>
- <NuxtLink to="/" title="最新资讯"> 热点新闻 </NuxtLink>
- </div>
- <div class="new-items-box-body">
- <div class="coniteml2">
- <div class="rdxwImg">
- <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
- <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
- </NuxtLink>
- </div>
- <div class="rdxwText">
- <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
- <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
- <p> 1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
- </NuxtLink>
- </div>
- </div>
- <div class="coniteml2">
- <div class="rdxwImg">
- <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
- <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
- </NuxtLink>
- </div>
- <div class="rdxwText">
- <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
- <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
- <p> 1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
- </NuxtLink>
- </div>
- </div>
- <div class="coniteml2">
- <div class="rdxwImg">
- <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
- <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
- </NuxtLink>
- </div>
- <div class="rdxwText">
- <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
- <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
- <p> 1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
- </NuxtLink>
- </div>
- </div>
- <div class="coniteml2">
- <div class="rdxwImg">
- <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
- <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
- </NuxtLink>
- </div>
- <div class="rdxwText">
- <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
- <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
- <p> 1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
- </NuxtLink>
- </div>
- </div>
-
- </div>
- </div>
-
- <!-- <DetailHotNews2></DetailHotNews2> -->
- </div>
-
- </div>
- <!-- 页面底部 -->
- <HomeFoot></HomeFoot>
- </template>
- <script setup>
- //1.页面依赖 start ---------------------------------------->
- import { onMounted } from 'vue'
- import { ElBreadcrumb, ElBreadcrumbItem,ElRadio, ElRadioGroup,ElCheckbox,ElCheckboxGroup,ElMessage,ElInput } from 'element-plus'
- import { ArrowRight } from '@element-plus/icons-vue'
- const nuxtApp = useNuxtApp();
- const axios = nuxtApp.$axios;
- //1.1 获得跳转过来的id
- const route = useRoute();
- const articleId = parseInt(route.params.id); //获得该页面的id
- //1.2 获得父级栏目的名称、id
- //获得当前的完整路径
- const fullPath = route.path;
- // //拆分,取出来中间这一段,然后提取数字部分
- // const segments = fullPath.split('/');
- // const targetSegment = segments[1];
- const targetSegment = getRoutePath(1);
- const targetSegment1 = getRoutePath(2);
- const targetSegment2 = getRoutePath(3);
- // const numberPart = targetSegment.match(/\d+$/)?.[0];
- // const routeId = numberPart;
- let routeId;
- //通过导航路径反向查询导航id
- const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
- method: 'GET',
- query: {
- 'pinyin': targetSegment+'/'+targetSegment1,
- },
- });
- if(getRouteId.code == 200){
- routeId = getRouteId.data.category_id
- }else{
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:通过url路径查询导航池id")
- console.log("后端错误反馈:",getRouteId.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- //面包屑导航
- const parent_name = ref("");
- const parent_id = ref("");
- const parent_pinyin = ref("");
- let getParentNav = async () => {
- const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
- method: 'GET',
- query: {
- 'catid': routeId
- },
- });
- console.log("获取面包屑导航",listData);
- if (listData.code == 200) {
- parent_name.value = listData.data.parent_name;
- parent_id.value = listData.data.parent_id;
- parent_pinyin.value = listData.data.parent_pinyin;
- } else {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:获取面包屑导航")
- console.log("后端错误反馈:", listData.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- //获得父级栏目详情
- getParentNav();
- //1.页面依赖 end ---------------------------------------->
- //2.页面数据 start ---------------------------------------->
- //2.1 资讯详情
- const newsDetail = ref({})
- const routeNewsTtitle = ref("");
- //2.2 发布日期
- const time = ref("");
- //2.3 路径
- const routLevelTitle = ref("");
- const routLevelId = ref("");
- //是否展示投票
- const articleChoice = ref(false);
- //2.4获取详情
- async function getPageData() {
- const mkdata = await requestDataPromise('/web/selectWebsiteArticleInfo', {
- method: 'GET',
- query: {
- 'articleid': articleId
- },
- });
- if(mkdata.code==200){
- //判断是否显示投票
- if(mkdata.data.is_survey==1){
- console.log("本篇文章含有投票!")
- articleChoice.value = true;
- getVoteList();
- }
- //获取内容
- newsDetail.value = mkdata.data;
- //获取路径
- routLevelTitle.value = newsDetail.value.cat_name;
- routLevelId.value = newsDetail.value.category_id;
- //获取发布时间
- time.value = newsDetail.value.updated_at.split(' ')[0];
- //修正标题长度
- if (newsDetail.value.title.length >= 30) {
- routeNewsTtitle.value = newsDetail.value.title.substr(0, 5) + "...";
-
- } else {
- routeNewsTtitle.value = newsDetail.value.title
- }
- }else{
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- // console.log("错误位置:获取详情内容")
- // console.log("后端错误反馈:",mkdata.message)
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- getPageData();
- //2.5 获得广告
- //广告列表
- let adImg1 = ref([]);
- onMounted(async () => {
- const { $webUrl, $CwebUrl } = useNuxtApp();
- //广告1
- let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_detail_0001`
- const responseAd1 = await fetch(url, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd1 = await responseAd1.json();
- adImg1.value = resultAd1.data[0];
- })
- //2.页面数据 end ---------------------------------------->
- //3.设置seo信息 start---------------------------------------->
- //3.1 设置seo信息
- const setData = await requestDataPromise('/web/selectWebsiteArticleInfo', {
- method: 'GET',
- query: {
- 'articleid': articleId
- },
- });
- if(setData.code==200){
- let seoTitle = setData.data.title;
- let seoDescription = setData.data.introduce;
- let seoKeywords = setData.data.keyword;
- let seoSuffix = setData.data.suffix;
- let seoName = setData.data.website_name;
- useSeoMeta({
- title: seoTitle + "_" + seoName + "_" + seoSuffix,
- meta: [
- { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix , tagPriority: 10 },
- { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix , tagPriority: 10 },
- { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no',tagPriority: 10 }
- ]
- });
- }else{
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- // console.log("错误位置:设置详情页面SEO数据")
- // console.log("后端错误反馈:",setData.message)
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- //3.设置seo信息 end---------------------------------------->
- //4.投票 start---------------------------------------->
- const radio1 = ref(''); //单选
- const check1 = ref([]); //多选
- const isDisabled = ref(false);//是否禁用提交按钮
- const isRadio = ref(true);//是否渲染单选
- const userSurId = ref('');//投票属于哪一篇文章
- const userChoice = ref('');//用于判断用户选择了其他选项以后,输入的值
- const userIsChoice = ref('');//用于判断其他选项目前是什么值
- const showUserChoice = ref(false);//是否显示其他输入框
- const websiteSurveyData = ref([]);//投票结果
- //3.2获得投票列表
- let voteList = ref([]);
- async function getVoteList(){
- const voteData = await requestHome('/web/getWebsiteSurvey',{method:'GET',query:{'art_id':articleId}});
- console.log(778899)
- console.log(voteData)
- if(voteData.code == 200){
- voteList.value = voteData.data;
- console.log(voteList.value)
- //判断显示单选还是多选
- //survey_type 0是单选 1是多选
- if(voteData.data[0].survey_type == 0){
- isRadio.value = true;
- console.log("1111")
- }else{
- isRadio.value = false;
- }
- //把最后一个的值拿出来 用于判断用户是否选择了其他
- for(let item of voteData.data){
- //如果含有其他
- if(item.is_other==1){
- userIsChoice.value = item.id;
- }
- }
- //用户投票属于哪一篇文章
- userSurId.value = voteData.data[0].sur_id;
- }else{
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:首页投票")
- console.log("后端错误反馈:",voteData.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- //3.2当用户选择了选项,判断是否展示其他输入框
- const handleRadioChange = (value) => {
- if(value == userIsChoice.value){
- showUserChoice.value = true;
- }else{
- showUserChoice.value = false;
- }
- }
- const handleCheckboxChange = (value) => {
- if (value.includes(userIsChoice.value)) {
- showUserChoice.value = true;
- } else {
- showUserChoice.value = false;
- }
- }
- //3.2发起投票
- async function addWebsiteSurvey(){
- //判断当前是单选还是多选
- console.log(isRadio.value)
- if(isRadio.value){
- console.log("用户单选!")
- if(radio1.value!=''){
- //先判断一下是否使用了其他选项
- if(showUserChoice.value){
- if(userChoice.value!=''){
- //文章id
- // console.log(userSurId.value)
- // 用户输入的值
- // console.log(userChoice.value)
- //如果使用了其他,其他的选项需要增加进去
- const ChoiceData = await requestHome('/web/addWebsiteSurveyOption',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,//投票的新闻id
- 'choice_name':userChoice.value,//投票的选项id
- }
- });
- if(ChoiceData.code == 200){
- //提交完其他选项以后,再正式发起投票
- const mkData = await requestHome('/web/addWebsiteSurveyVote',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,
- 'choice_id':ChoiceData.data
- }
- });
- if(mkData.code == 200){
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for(let item of data.data){
- for(let i of data.choice){
- if(item.id == i){
- console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- }else{
- ElMessage.error(mkData.message)
- }
- }else{
- ElMessage.error('其他投票失败!')
- }
- }else{
- ElMessage.error('请输入选项内容!')
- }
- }else{
- //如果没选择其他,直接提交选择的内容
- const mkData = await requestHome('/web/addWebsiteSurveyVote',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,
- 'choice_id':radio1.value
- }
- });
- if(mkData.code == 200){
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for(let item of data.data){
- for(let i of data.choice){
- if(item.id == i){
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- }else{
- ElMessage.error('投票失败!')
- }
- }
- }else{
- ElMessage.error('请选择一个选项')
- }
- }else{
- console.log("多选!")
- //多选
- if(check1.value!=[]){
- //先判断一下是否使用了其他选项
- if(showUserChoice.value){
- if(userChoice.value!=''){
- //判断用户是否只选择了一个其他
- if(check1.value.length == 1){
- const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,//投票的新闻id
- 'choice_name':userChoice.value,//用户输入的其他选项文字
- }
- });
- if(ChoiceData.code == 200){
- //提交完其他选项以后,再正式发起投票
- const mkData = await requestDataPromise('/web/addWebsiteSurveyVote',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,
- 'choice_id':ChoiceData.data
- }
- });
- if(mkData.code == 200){
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for(let item of data.data){
- for(let i of data.choice){
- if(item.id == i){
- console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- }else{
- ElMessage.error(mkData.message)
- }
- }else{
- ElMessage.error('其他投票失败!')
- }
- }else{
- //用户选择了除了其他以外,还包括别的选项
- const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,//投票的新闻id
- 'choice_name':userChoice.value,//用户输入的其他选项文字
- }
- });
- if(ChoiceData.code == 200){
- let data = check1.value;
- //找到多选的数组,把其他默认值给替换掉
- for (let i = 0; i < data.length; i++) {
- if (data[i] == userIsChoice.value) {
- data[i] = ChoiceData.data;
- }
- }
- let jsonArray = JSON.stringify(data);
- //提交完其他选项以后,再正式发起投票
- const mkData = await requestDataPromise('/web/addWebsiteSurveyVote',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,
- 'choice_id':jsonArray
- }
- });
-
- if(mkData.code == 200){
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for(let item of data.data){
- for(let i of data.choice){
- if(item.id == i){
- //console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- }else{
- ElMessage.error(mkData.message)
- }
- }else{
- ElMessage.error('其他投票失败!')
- }
- }
- }else{
- ElMessage.error('请输入选项内容!')
- }
- }else{
- let jsonArray = JSON.stringify(check1.value);
- //如果没选择其他,直接提交选择的内容
- const mkData = await requestDataPromise('/web/addWebsiteSurveyVote',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,
- 'choice_id':jsonArray
- }
- });
- if(mkData.code == 200){
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for(let item of data.data){
- for(let i of data.choice){
- if(item.id == i){
- console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- }else{
- ElMessage.error('投票失败!')
- }
- }
- }else{
- ElMessage.error('请选择一个选项')
- }
- }
- }
- //4.投票 end---------------------------------------->
- //5.页面图片放大 start---------------------------------------->
- const previewVisible = ref(false)
- const selectedImage = ref(' ')
- const openPreview = (event) => {
- if (event.target.tagName === 'IMG') {
- selectedImage.value = event.target.src;
- previewVisible.value = true;
- }
- }
- const closePreview = () => {
- previewVisible.value = false;
- }
- //5.页面图片放大 end---------------------------------------->
- </script>
- <style lang="less" scoped>
- //@import url('@/assets/css/article/pc.less');
- //@import url('@/assets/css/article/yd.less');
- //面包屑
- .breadcrumb-box {
- width: 1401px;
- margin: 0 auto;
- background: #fff;
- padding: 0 10PX 0;
- padding-left: 11PX;
- .inner {
- width: 100%;
- height: 50PX;
- margin-top: 14px;
- padding-top: 20PX;
- // margin-bottom: 20px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #666666;
- text-align: left;
- font-style: normal;
- text-transform: none;
- display: flex;
- align-items: center;
- border-bottom: 1PX solid #ccc;
- // border-bottom: 1px dashed #ccc;
- // margin-bottom: 10px;
- // padding: 20px 20px 20px 0;
- box-sizing: border-box;
- a {
- font-size: 16px;
- color: #000;
- line-height: 20px;
- }
- span {
- font-size: 16px;
- color: #000;
- line-height: 20px;
- &.location {
- line-height: 20px;
- }
- }
- }
- }
- .leftBottom::v-deep p img,
- .leftBottom::v-deep img,
- .leftBottom::v-deep video {
- max-width: 700px;
- }
- .leftBottom::v-deep h1,
- .leftBottom::v-deep h2,
- .leftBottom::v-deep h3,
- .leftBottom::v-deep h4,
- .leftBottom::v-deep h5,
- .leftBottom::v-deep h6 {
- font-size: 20px;
- font-weight: 500;
- }
- //投票
- .index_3_box_vote {
- .voteTitle {
- font-size: 20px;
- height: 40px;
- line-height: 40px;
- color: #333333;
- padding-left: 20px;
- width: 100%;
- border-bottom: 1px solid #E7E7E7;
- border-top: 1px solid #139602;
- box-sizing: border-box;
- }
- width:100%;
- box-sizing:border-box;
- border:solid 1px #FBFBFB;
- background: #FBFBFB;
- .inquire {
- height: 394px;
- margin-top: 20px;
- border-radius: 6px 6px 6px 6px;
- padding: 4px 40px 4px 6px;
- box-sizing: border-box;
- p {
- font-weight: bold;
- height: 69px;
- font-family: PingFang SC, PingFang SC;
- font-size: 20px;
- color: #333333;
- line-height: 21px;
- text-align: left;
- font-style: normal;
- text-transform: none;
- padding: 12px 20px 0 32px;
- }
- .radioBox {
- height: 250px;
- padding-left: 30px;
- overflow-y: auto;
- box-sizing: border-box;
- padding-bottom: 20px;
- }
- .radio {
- /deep/.el-radio {
- --el-radio-input-border-color-hover: #27881a;
- }
- /deep/.el-radio-group {
- align-items: center;
- display: inline-flex;
- flex-wrap: wrap;
- font-size: 0;
- //padding-left: 35px;
- }
- /deep/.el-radio.el-radio--large {
- width: 100%;
- height: 29px;
- margin-bottom: 15px;
- }
- /deep/.el-radio.el-radio--large .el-radio__label {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #333333;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- width: 300px;
- }
- /deep/.el-radio.el-radio--large .el-radio__inner {
- height: 16px;
- width: 16px;
- }
- /deep/.el-radio__input.is-checked+.el-radio__label {
- color: #27881a;
- }
- /deep/.el-radio__input.is-checked .el-radio__inner {
- background: #33b023;
- border-color: #27881a;
- }
- }
- .checkInputBox {
- /deep/.el-checkbox {
- --el-radio-input-border-color-hover: #27881a;
- }
- /deep/.el-checkbox-group {
- align-items: center;
- display: inline-flex;
- flex-wrap: wrap;
- font-size: 0;
- //padding-left: 35px;
- }
- /deep/.el-checkbox.el-checkbox--large {
- width: 330px;
- height: 29px;
- margin-bottom: 15px;
- }
- /deep/.el-checkbox.el-checkbox--large .el-checkbox__label {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #333333;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- width: 300px;
- }
- /deep/.el-checkbox.el-checkbox--large .el-checkbox__inner {
- height: 16px;
- width: 16px;
- }
- /deep/.el-checkbox__input.is-checked+.el-checkbox__label {
- color: #27881a;
- }
- /deep/.el-checkbox__input.is-checked .el-checkbox__inner {
- background: #33b023;
- border-color: #27881a;
- }
- }
- .btn {
- padding-left: 30px;
- button {
- width: 78px;
- height: 37px;
- line-height: 37px;
- border-radius: 6px;
- border: none;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #999999;
- }
- .voting {
- background-color: #49A769;
- color: #fff;
- margin-right: 44px;
- cursor: pointer;
- }
- .look {
- cursor: pointer;
- }
- }
- }
- .inquireData {
- .inquireDataItem {
- width: 100%;
- height: 38px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- background: #F3F3F3;
- border: 1px solid #D2D2D2;
- margin-bottom: 10px;
- border-radius: 6px;
- padding: 0 15px;
- box-sizing: border-box;
- color: #999999;
- .inquireDataItemTitle {
- width: 290px;
- height: 38px;
- font-size: 16px;
- line-height: 38px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .inquireDataItemNum {
- font-size: 16px;
- }
- }
- .active {
- color: #49A769;
- background: #dff7e8;
- border: 1px solid #49A769;
- }
- }
- }
- //放大图片
- .preview-modal {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.8);
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 1000;
- }
- .preview-modal img {
- max-width: 100%;
- max-height: 100%;
- cursor: pointer;
- }
- //上一篇 下一篇
- .prevNext {
- // border-bottom: 1px solid #ccc;
- padding-bottom: 10px;
- margin-top: 45PX;
- a {
- display: block;
- color: #333;
- font-size: 15px;
- display: block;
- height: 40px;
- line-height: 40px;
- margin-bottom: 20PX;
- &:hover {
- color: #0071B7;
- }
- }
- }
- .breadcrumb-box{width:1400PX;margin:0px auto 0px; }
- .el-breadcrumb{height:22PX;line-height:22PX;}
- .breadcrumb-box .inner span.location{font-size:16PX;;height:22PX;;line-height:22PX; font-weight:normal;word-break: keep-all; white-space: nowrap;}
- .breadcrumb-box .inner a{font-size:16PX;;height:22PX;line-height:22PX;display:inline-block; font-weight:normal;}
- .breadcrumb-box .phone_breadcrumb_text /deep/.el-breadcrumb__inner{font-size:16PX;;height:22PX;line-height:22PX;
- font-weight:normal;}
- .breadcrumb-box:deep(.el-icon){width:16PX;height:16PX;}
- .breadcrumb-box .inner span{font-size:16PX;height:22PX;line-height:22PX;}
- .prevNext a{height:22PX;line-height:22PX;font-size:15PX;width:100%;
- display:block;word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
- }
-
- @media screen and (min-width: 1401px) {
- //你的样式
- .newsDetail{
- width: 1401PX;
- margin: 0 auto 10PX;
- overflow: hidden;
- font-size: 16px;
- // background: red;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- background: #fff;
- // margin-top: 20PX;
- padding: 0 10PX;
- .innerLeft{
- float:left;
- overflow: hidden;
- width: 65%;
- // background: red;
- .LeftTop {
- >h1 {
- display: block;
- width: 100%;
- height: auto;
- // color: #454749;
- line-height: 40PX;
- font-weight: normal;
- font-size: 24PX;
- color: #333333;
- text-align: center;
- }
- >p {
- width: 100%;
- height: 40PX;
- text-align: center;
- line-height: 26PX;
- // border-bottom: 1PX solid #ccc;
- border-bottom: 1px dashed #ccc;
- span {
- padding: 0 10PX;
- font-size: 15PX;
- color: #454749;
- }
- }
- >img {
- display: inline-block;
- max-width: 100%;
- overflow: hidden;
- margin: 20PX auto;
- text-align: center;
- vertical-align: middle;
- }
- }
- .leftBottom {
- margin-top: 20PX;
- font-size: 18PX;
- line-height: 38PX;
- // margin-bottom: 30PX;
- word-break:break-all;
- ul>li img {
- width: 790PX;
- height: 382PX;
- }
- img {
- width: 790PX;
- height: 382PX;
- }
- p.tinymce-material {
- img {
- width: 790PX;
- }
- }
- >h3,
- >p {
- text-indent: 2em;
- width: 790PX;
- font-family: "宋体";
- font-size: 18PX;
- color: #333;
- line-height: 38PX;
- padding-bottom: 30PX;
- font-weight: normal;
- img {
- width: 790PX;
- }
- }
- >h3 {
- font-weight: 600PX;
- }
- >p {
- text-indent: 2em;
- font-weight: 400;
- }
- }
- .disclaimer {
- width: 790PX;
- overflow: hidden;
- border-top: 1PX solid #e6e6e6;
- padding: 30PX 0PX;
- color: #999999;
- font-size: 18PX;
- p {
- text-indent: 2em;
- width: 790PX;
- line-height: 30PX;
- }
- }
- .recommendRead {
- width: 100%;
- margin: 30PX 0PX 20PX0;
- .recommendReadTitle {
- font-size: 18PX;
- color: #001996;
- height: 42PX;
- line-height: 35PX;
- letter-spacing: 1PX;
- text-align: left;
- font-style: normal;
- text-transform: none;
- border-bottom: 1PX solid #D9D9D9;
- .read_title {
- display: inline-block;
- text-align: center;
- width: 94PX;
- height: 40PX;
- border-bottom: 2PX solid #158d91;
- }
- }
- .recommendReadList {
- min-height: 155PX;
- margin-top: 20PX;
- padding-bottom: 10PX;
- font-size: 16PX;
- border-bottom: 1PX solid #D9D9D9;
- .recommendReadListTitle {
- margin-top: 18PX;
- a {
- &:hover {
- color: #158d91;
- }
- color: #333333;
- }
- }
- .recommendReadListTitle:nth-child(1)::after {
- content: "热";
- margin-left: 13PX;
- background: #FF8A37;
- color: #fff;
- font-size: 14PX;
- padding: 0PX 2PX;
- }
- .recommendReadListTitle:hover a {
- color: #158d91;
- }
- }
- }
- }
- .innerRight{
- width: 32%;
- float: right;
- overflow: hidden;
- margin: 25PX auto;
- box-sizing: border-box;
- // background: blue;
- .newsItemsBox {
- width: 100%;
- height: auto;
- // padding: 10PX 0;
- // background: blue;
- .new-items-box-title {
- // margin-bottom: 10PX;
- width: 100%;
- height: 36PX;
- line-height: 36PX;
- border-bottom: 2PX solid #83E515;
- // background: yellow;
- span{
- width: 46PX;
- height: 31PX;
- background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
- background-size: 100% 100%;
- display: block;
- height: 31PX;
- float: left;
- margin: 2PX;
- }
- a{
- width: 88PX;
- float: left;
- display: block;
- font-size: 16PX;
- text-align: center;
- color: #065500;
- font-weight: bold;
- // margin-left: 10px;
- // border-bottom: 2PX solid #2b96f1;
- // background: red;
- }
-
- }
- .new-items-box-body{
- padding: 10PX 10PX ;
- .coniteml{
- width: 100%;
- height: auto;
- // overflow: hidden;
- // padding: 10PX 10PX ;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 20PX;
- .l_img{
- width: 48%;
- // background: red;
- height: auto;
- // float: left;
- // overflow: hidden;
- .imgA{
- display: block;
- height: 100PX;
- img{
- vertical-align: middle;
- // display: block ;
- bottom: 0;
- width: 100%;
- height: 100%;
- // margin-top: -20PX;
- }
-
- }
- }
-
- }
- .coniteml2{
- width: 100%;
- height: auto;
- overflow: hidden;
- margin: 10PX 0;
- .rdxwImg{
- width: 34%;
- height: 92PX;
- float: left;
- overflow: hidden;
- a{
- text-decoration: none;
- img{
- display: block;
- width: 100%;
- height: 100%;
- }
- }
- }
- .rdxwText{
- width: 63%;
- height: auto;
- overflow: hidden;
- float: right;
- a{
- text-decoration: none;
- h4{
- display: block;
- width: 100%;
- height: 20PX;
- line-height: 20PX;
- overflow: hidden;
- font-size: 14PX;
- color: #000;
- font-weight: bold;
- }
- p{
- width: 100%;
- height: 50PX;
- line-height: 24PX;
- font-size: 15PX;
- color: #333;
- margin: 0;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- text-indent: 2em;
- }
- }
- }
- }
- .zzjj{
- // margin-bottom: 40PX;
- .maskLayer{
- position: relative;
- height: 100PX;
- width: 49%;
- .maskLayer_text{
- .zzc{
- position: absolute;
- bottom: 0;
- left: 0;
- background: rgba(0, 0, 0, .5);
- color: #fff;
- display: block;
- width: 100%;
- line-height: 30PX;
- overflow: hidden;
- text-align: center;
- font-size: 16PX;
-
- }
- }
- }
-
- }
- .conitemlList{
- width: 100%;
- height: auto;
- overflow: hidden;
- // background: blue;
-
- li{
- width: 100%;
- height: 30PX;
- display: flex;
- align-items: center;
- justify-content:space-between;
- span{
- width: 4%;
- display: inline-block;
- height: 15PX;
- font-size: 15PX;
- line-height: 15PX;
- text-align: center;
- float: left;
- overflow: hidden;
- margin-right: 6PX;
- }
- a{
- display: inline-block;
- line-height: 34PX;
- width: 96%;
- // background: green;
- font-size: 15PX;
- color: #454749;
- margin-top: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- a:hover{
- color: #83E515;
- }
- }
-
- }
- .conitemlList li:nth-child(1) span{
- background: #ff7500;
- color: #fff;
- }
- .conitemlList li:nth-child(2) span{
- background: #ffa400;
- color: #fff;
- }
- .conitemlList li:nth-child(3) span{
- background: #f6c20e;
- color: #fff;
- }
-
- }
- }
- }
- }
- }
- @media screen and (min-width: 801px) and (max-width: 1400px) {
- //你的样式
- .newsDetail{
- min-width: 801PX;
- max-width: 1400PX;
- margin: 0 auto 10PX;
- overflow: hidden;
- font-size: 16px;
- // background: red;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- background: #fff;
- // margin-top: 20PX;
- padding: 0 10PX;
- .innerLeft{
- float:left;
- overflow: hidden;
- width: 65%;
- // background: red;
- .LeftTop {
- >h1 {
- display: block;
- width: 100%;
- height: auto;
- // color: #454749;
- line-height: 40PX;
- font-weight: normal;
- font-size: 24PX;
- color: #333333;
- text-align: center;
- }
- >p {
- width: 100%;
- height: 40PX;
- text-align: center;
- line-height: 26PX;
- // border-bottom: 1PX solid #ccc;
- border-bottom: 1px dashed #ccc;
- span {
- padding: 0 10PX;
- font-size: 15PX;
- color: #454749;
- }
- }
- >img {
- display: inline-block;
- max-width: 100%;
- overflow: hidden;
- margin: 20PX auto;
- text-align: center;
- vertical-align: middle;
- }
- }
- .leftBottom {
- margin-top: 20PX;
- font-size: 18PX;
- line-height: 38PX;
- // margin-bottom: 30PX;
- word-break:break-all;
- ul>li img {
- width: 790PX;
- height: 382PX;
- }
- img {
- width: 790PX;
- height: 382PX;
- }
- p.tinymce-material {
- img {
- width: 790PX;
- }
- }
- >h3,
- >p {
- text-indent: 2em;
- width: 790PX;
- font-family: "宋体";
- font-size: 18PX;
- color: #333;
- line-height: 38PX;
- padding-bottom: 30PX;
- font-weight: normal;
- img {
- width: 790PX;
- }
- }
- >h3 {
- font-weight: 600PX;
- }
- >p {
- text-indent: 2em;
- font-weight: 400;
- }
- }
- .disclaimer {
- width: 790PX;
- overflow: hidden;
- border-top: 1PX solid #e6e6e6;
- padding: 30PX 0PX;
- color: #999999;
- font-size: 18PX;
- p {
- text-indent: 2em;
- width: 790PX;
- line-height: 30PX;
- }
- }
- .recommendRead {
- width: 100%;
- margin: 30PX 0PX 20PX0;
- .recommendReadTitle {
- font-size: 18PX;
- color: #001996;
- height: 42PX;
- line-height: 35PX;
- letter-spacing: 1PX;
- text-align: left;
- font-style: normal;
- text-transform: none;
- border-bottom: 1PX solid #D9D9D9;
- .read_title {
- display: inline-block;
- text-align: center;
- width: 94PX;
- height: 40PX;
- border-bottom: 2PX solid #158d91;
- }
- }
- .recommendReadList {
- min-height: 155PX;
- margin-top: 20PX;
- padding-bottom: 10PX;
- font-size: 16PX;
- border-bottom: 1PX solid #D9D9D9;
- .recommendReadListTitle {
- margin-top: 18PX;
- a {
- &:hover {
- color: #158d91;
- }
- color: #333333;
- }
- }
- .recommendReadListTitle:nth-child(1)::after {
- content: "热";
- margin-left: 13PX;
- background: #FF8A37;
- color: #fff;
- font-size: 14PX;
- padding: 0PX 2PX;
- }
- .recommendReadListTitle:hover a {
- color: #158d91;
- }
- }
- }
- }
- .innerRight{
- width: 32%;
- float: right;
- overflow: hidden;
- margin: 25PX auto;
- box-sizing: border-box;
- // background: blue;
- .newsItemsBox {
- width: 100%;
- height: auto;
- // padding: 10PX 0;
- // background: blue;
- .new-items-box-title {
- // margin-bottom: 10PX;
- width: 100%;
- height: 36PX;
- line-height: 36PX;
- border-bottom: 2PX solid #83E515;
- // background: yellow;
- span{
- width: 46PX;
- height: 31PX;
- background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
- background-size: 100% 100%;
- display: block;
- height: 31PX;
- float: left;
- margin: 2PX;
- }
- a{
- width: 88PX;
- float: left;
- display: block;
- font-size: 16PX;
- text-align: center;
- color: #065500;
- font-weight: bold;
- // margin-left: 10px;
- // border-bottom: 2PX solid #2b96f1;
- // background: red;
- }
-
- }
- .new-items-box-body{
- padding: 10PX 10PX ;
- .coniteml{
- width: 100%;
- height: auto;
- // overflow: hidden;
- // padding: 10PX 10PX ;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 20PX;
- .l_img{
- width: 48%;
- // background: red;
- height: auto;
- // float: left;
- // overflow: hidden;
- .imgA{
- display: block;
- height: 100PX;
- img{
- vertical-align: middle;
- // display: block ;
- bottom: 0;
- width: 100%;
- height: 100%;
- // margin-top: -20PX;
- }
-
- }
- }
-
- }
- .coniteml2{
- width: 100%;
- height: auto;
- overflow: hidden;
- margin: 10PX 0;
- .rdxwImg{
- width: 34%;
- height: 92PX;
- float: left;
- overflow: hidden;
- a{
- text-decoration: none;
- img{
- display: block;
- width: 100%;
- height: 100%;
- }
- }
- }
- .rdxwText{
- width: 63%;
- height: auto;
- overflow: hidden;
- float: right;
- a{
- text-decoration: none;
- h4{
- display: block;
- width: 100%;
- height: 20PX;
- line-height: 20PX;
- overflow: hidden;
- font-size: 14PX;
- color: #000;
- font-weight: bold;
- }
- p{
- width: 100%;
- height: 50PX;
- line-height: 24PX;
- font-size: 15PX;
- color: #333;
- margin: 0;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- text-indent: 2em;
- }
- }
- }
- }
- .zzjj{
- // margin-bottom: 40PX;
- .maskLayer{
- position: relative;
- height: 100PX;
- width: 49%;
- .maskLayer_text{
- .zzc{
- position: absolute;
- bottom: 0;
- left: 0;
- background: rgba(0, 0, 0, .5);
- color: #fff;
- display: block;
- width: 100%;
- line-height: 30PX;
- overflow: hidden;
- text-align: center;
- font-size: 16PX;
-
- }
- }
- }
-
- }
- .conitemlList{
- width: 100%;
- height: auto;
- overflow: hidden;
- // background: blue;
-
- li{
- width: 100%;
- height: 30PX;
- display: flex;
- align-items: center;
- justify-content:space-between;
- span{
- width: 4%;
- display: inline-block;
- height: 15PX;
- font-size: 15PX;
- line-height: 15PX;
- text-align: center;
- float: left;
- overflow: hidden;
- margin-right: 6PX;
- }
- a{
- display: inline-block;
- line-height: 34PX;
- width: 96%;
- // background: green;
- font-size: 15PX;
- color: #454749;
- margin-top: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- a:hover{
- color: #83E515;
- }
- }
-
- }
- .conitemlList li:nth-child(1) span{
- background: #ff7500;
- color: #fff;
- }
- .conitemlList li:nth-child(2) span{
- background: #ffa400;
- color: #fff;
- }
- .conitemlList li:nth-child(3) span{
- background: #f6c20e;
- color: #fff;
- }
-
- }
- }
- }
- }
- }
- @media screen and (max-width: 800px) {
- //你的样式
- .breadcrumb-box {
- max-width: 100%;
- height: 80PX;
- // padding: 0 10PX;
- // margin-top: 20PX;
- overflow: hidden;
- text-align: center;
-
- }
- .breadcrumb-box .inner{
- max-width: 98%;
- margin-bottom: 25PX;
- overflow: hidden;
- padding: 40PX 20PX -10PX;
- margin-top: 10PX;
- white-space: nowrap;
- a{
- font-size: 30px;
- }
-
- }
- .prevNext{
- margin: 20PX 0;
- }
- .newsDetail{
- max-width: 800PX;
- margin: 0 auto 10PX;
- overflow: hidden;
- font-size: 16px;
- // background: red;
- display: flex;
- flex-wrap: wrap;
- // align-items: flex-start;
- // justify-content: space-between;
- background: #fff;
- // margin-top: 20PX;
- padding: 0 20PX;
- .innerLeft{
- float:left;
- overflow: hidden;
- width: 100%;
- // background: red;
- .LeftTop {
- >h1 {
- display: block;
- width: 100%;
- height: auto;
- // color: #454749;
- line-height: 40PX;
- font-weight: normal;
- font-size: 44px;
- color: #333333;
- text-align: center;
- }
- >p {
- width: 100%;
- height: 40PX;
- text-align: center;
- line-height: 26PX;
- // border-bottom: 1PX solid #ccc;
- border-bottom: 1px dashed #ccc;
- span {
- padding: 0 10PX;
- font-size: 28px;
- color: #454749;
- }
- }
- >img {
- display: inline-block;
- max-width: 100%;
- overflow: hidden;
- margin: 20PX auto;
- text-align: center;
- vertical-align: middle;
- }
- }
- .leftBottom {
- margin-top: 20PX;
- font-size: 18PX;
- line-height: 38PX;
- // margin-bottom: 30PX;
- word-break:break-all;
- ul>li img {
- width: 790PX;
- height: 382PX;
- }
- img {
- width: 790PX;
- height: 382PX;
- }
- p.tinymce-material {
- img {
- width: 790PX;
- }
- }
- >h3,
- >p {
- text-indent: 2em;
- width: 790PX;
- font-family: "宋体";
- font-size: 28px;
- color: #333;
- line-height: 38PX;
- padding-bottom: 30PX;
- font-weight: normal;
- img {
- width: 790PX;
- }
- }
- >h3 {
- font-weight: 600PX;
- }
- >p {
- text-indent: 2em;
- font-weight: 400;
- }
- }
- .disclaimer {
- width: 790PX;
- overflow: hidden;
- border-top: 1PX solid #e6e6e6;
- padding: 30PX 0PX;
- color: #999999;
- font-size: 18PX;
- p {
- text-indent: 2em;
- width: 790PX;
- line-height: 30PX;
- }
- }
- .recommendRead {
- width: 100%;
- margin: 30PX 0PX 20PX0;
- .recommendReadTitle {
- font-size: 18PX;
- color: #001996;
- height: 42PX;
- line-height: 35PX;
- letter-spacing: 1PX;
- text-align: left;
- font-style: normal;
- text-transform: none;
- border-bottom: 1PX solid #D9D9D9;
- .read_title {
- display: inline-block;
- text-align: center;
- width: 94PX;
- height: 40PX;
- border-bottom: 2PX solid #158d91;
- }
- }
- .recommendReadList {
- min-height: 155PX;
- margin-top: 20PX;
- padding-bottom: 10PX;
- font-size: 16PX;
- border-bottom: 1PX solid #D9D9D9;
- .recommendReadListTitle {
- margin-top: 18PX;
- a {
- &:hover {
- color: #158d91;
- }
- color: #333333;
- }
- }
- .recommendReadListTitle:nth-child(1)::after {
- content: "热";
- margin-left: 13PX;
- background: #FF8A37;
- color: #fff;
- font-size: 14PX;
- padding: 0PX 2PX;
- }
- .recommendReadListTitle:hover a {
- color: #158d91;
- }
- }
- }
- }
- .innerRight {
- width: 100%;
- // float: right;
- overflow: hidden;
- margin: 20PX auto;
- box-sizing: border-box;
- .newsItemsBox {
- width: 100%;
- height: auto;
- // padding: 10PX 0;
- // background: blue;
- .new-items-box-title {
- // margin-bottom: 10PX;
- width: 100%;
- height: 36PX;
- line-height: 36PX;
- border-bottom: 2PX solid #83E515;
- // background: yellow;
- span{
- width: 46PX;
- height: 31PX;
- background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
- background-size: 100% 100%;
- display: block;
- height: 31PX;
- float: left;
- margin: 2PX;
- }
- a{
- width: 88PX;
- float: left;
- display: block;
- font-size: 16PX;
- text-align: center;
- color: #065500;
- font-weight: bold;
- // margin-left: 10px;
- // border-bottom: 2PX solid #2b96f1;
- // background: red;
- }
-
- }
- .new-items-box-body{
- padding: 10PX 10PX ;
- .coniteml{
- width: 100%;
- height: auto;
- // overflow: hidden;
- // padding: 10PX 10PX ;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 90PX;
- .l_img{
- width: 48%;
- // background: red;
- height: auto;
- // float: left;
- // overflow: hidden;
- .imgA{
- display: block;
- height: 112.5PX;
- img{
- vertical-align: middle;
- // display: block ;
- bottom: 5PX;
- width: 100%;
- height: 100%;
- // margin-top: -20PX;
- }
-
- }
- }
-
- }
- .coniteml2{
- width: 100%;
- height: auto;
- overflow: hidden;
- margin: 10PX 0;
- .rdxwImg{
- width: 34%;
- height: 92PX;
- float: left;
- overflow: hidden;
- a{
- text-decoration: none;
- img{
- display: block;
- width: 100%;
- height: 100%;
- }
- }
- }
- .rdxwText{
- width: 63%;
- height: auto;
- overflow: hidden;
- float: right;
- margin-top: 10PX;
- a{
- text-decoration: none;
- h4{
- display: block;
- width: 100%;
- height: 20PX;
- line-height: 20PX;
- overflow: hidden;
- font-size: 28px;
- color: #000;
- font-weight: bold;
- }
- h4:hover{
- color: #83E515;
- }
- p{
- width: 100%;
- height: 50PX;
- line-height: 24PX;
- font-size: 30px;
- color: #333;
- margin: 0;
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- text-indent: 2em;
- }
- p:hover{
- color: #83E515;
- }
- }
-
- }
- }
- .zzjj{
- // margin-bottom: 40PX;
- .maskLayer{
- position: relative;
- height: 37.5PX;
- line-height: 37.5PX;
- width: 49%;
- .maskLayer_text{
- height: 37.5PX;
- .zzc{
- position: absolute;
- bottom: -75PX;
- height: 37.5PX;
- left: 0;
- background: rgba(0, 0, 0, .5);
- color: #fff;
- display: block;
- width: 100%;
- line-height: 37.5PX;
- overflow: hidden;
- text-align: center;
- font-size: 16PX;
-
- }
- }
- }
-
- }
- .conitemlList{
- width: 100%;
- height: auto;
- overflow: hidden;
- // background: blue;
-
- li{
- width: 100%;
- height: 30PX;
- display: flex;
- align-items: center;
- justify-content:space-between;
- span{
- width: 4%;
- display: inline-block;
- height: 15PX;
- font-size: 15PX;
- line-height: 15PX;
- text-align: center;
- float: left;
- overflow: hidden;
- margin-right: 6PX;
- }
- a{
- display: inline-block;
- line-height: 34PX;
- width: 96%;
- // background: green;
- font-size: 34px;
- color: #454749;
- margin-top: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- a:hover{
- color: #83E515;
- }
- }
-
- }
- .conitemlList li:nth-child(1) span{
- background: #ff7500;
- color: #fff;
- }
- .conitemlList li:nth-child(2) span{
- background: #ffa400;
- color: #fff;
- }
- .conitemlList li:nth-child(3) span{
- background: #f6c20e;
- color: #fff;
- }
-
- }
- }
- }
- }
-
- // .newsDetail .inner{display:block;width:100%;}
- // .newsDetail .inner .innerLeft{width:100%;}
- // .newsDetail .inner .innerRight{width:100%;}
- // .breadcrumb-box .phone_breadcrumb_text /deep/.el-breadcrumb__inner{width:100PX;
- // display:block;word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
- // }
- // .newsDetail .inner .innerLeft .recommendRead .recommendReadTitle .read_title{width:auto;}
- // .newsDetail .inner .innerLeft .leftBottom{line-height:33PX;}
- }
- </style>
|